package com.service.impl;

import com.dao.UserDao;
import com.pojo.User;
import com.service.UserService;
import lombok.Data;
import org.springframework.stereotype.Service;

//@Service("userService")
@Data
public class UserServiceImpl implements UserService {

    private UserDao userDao;
    @Override
    public int insertUser(User user) {
        return userDao.insertUser(user);
    }

    @Override
    public int updateUser(User user) {
        return userDao.updateUser(user);
    }
}
